package com.hnkywl.sts.action.tjbb;

import com.hnkywl.sts.service.tjbb.FkbbService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: SDE09
 * Date: 13-9-28
 * Time: 下午5:06
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/tjbb/fkbb")
public class FkbbAction extends SimpleActionSupport {
    private FkbbService fkbbService;
    private Date enddt;
    private int page;
    private int rows;

    @Action("fkbb")
    public String fkbb() {
        return SUCCESS;
    }

    @Action("fkbblist")
    public void fkbblist() {
        renderText(fkbbService.fkbbList(enddt));
    }

    public Date getEnddt() {
        return enddt;
    }

    public void setEnddt(Date enddt) {
        this.enddt = enddt;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    @Autowired
    public void setFkbbService(FkbbService fkbbService) {
        this.fkbbService = fkbbService;
    }
}
